-
Notifications
You must be signed in to change notification settings - Fork 72
968323: Added documentation for audio and video drag-and-drop. #6977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
@krishnan-periyasamy : PR has been self reviewed. |
| ## Drag and drop audio insertion | ||
|
|
||
| By default, the Rich Text Editor allows you to insert audios by drag-and-drop from the local file system such as Windows Explorer into the content editor area. And, you can upload the audios to the server before inserting into the editor by configuring the saveUrl property. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KokilaSF4836 : can you please highlight the saveUrl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference like:
- Drag-and-drop (default): Insert audio directly from your local file system (e.g., File Explorer, Finder) into the editor.
- Server upload: Configure
saveUrlto upload audio files to your server before insertion:
| ### Disabling audio drag and drop | ||
|
|
||
| You can prevent drag-and-drop action by setting the OnMediaDrop argument cancel value to true. The following code shows how to prevent the drag-and-drop. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KokilaSF4836 : can you please highlight the OnMediaDrop ?
| @code { | ||
| private string SaveURL = "https://blazor.syncfusion.com/services/production/api/RichTextEditor/SaveFile"; | ||
| private string Path = "https://blazor.syncfusion.com/services/production/RichTextEditor/"; | ||
| private List<ToolbarItemModel> Items = new List<ToolbarItemModel>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KokilaSF4836 : can you please update variable name as per the coding standard? Like,
private string? saveUrl;
| @code { | ||
| private string SaveURL = "https://blazor.syncfusion.com/services/production/api/RichTextEditor/SaveFile"; | ||
| private string Path = "https://blazor.syncfusion.com/services/production/RichTextEditor/"; | ||
| private List<ToolbarItemModel> Items = new List<ToolbarItemModel>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KokilaSF4836 : can you please update variable name as per the coding standard? Like,
Bug description
968323 Implement Video Drag-and-Drop Upload Support in Rich Text Editor - Blazor
984435 Test the Video Drag-And-Drop Feature and add manual test plan
979106 Implement Audio Drag-and-Drop Upload Support in Rich Text Editor - Blazor
API Review Video Drag-and-Drop Support for Blazor Rich Text Editor
Specification Document
Root Cause / Analysis
Updated the documentation for newly added feature.
Reason for not identifying earlier
Is Breaking issue.?
NO
Is reported by customer in incident/forum.?
NO
Solution Description
1.Added the documentation for Audio and Video Drag-and-Drop feature.
Areas affected and ensured
No existing areas were impacted. The following scenarios were thoroughly validated to ensure seamless functionality:
E2E report details against this fix
Did you included unit test cases.?
Yes
Is there any API name changes.?
Yes - OnMediaDrop and RemoveUrl API Review
Reviewer Checklist